package com.weixing.mall.provider.model.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.weixing.mall.core.support.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 商品模块-商品码
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("gds_goods_sn")
public class GoodsSn extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * 商品码
     */
    private String goodsSn;

    /**
     * 是否已打印
     */
    private Boolean isPrint;

    /**
     * 乐观锁
     */
    private Integer revision;

    /**
     * 创建人
     */
    private Long createdBy;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新时间
     */
    private Date updatedTime;

    /**
     * 是否可绑定
     */
    private Boolean isUntying;

    /**
     * 解绑时间
     */
    private LocalDateTime untyingTime;

    /**
     * 订单ID
     */
    private Long orderId;


}
